﻿using System;
using System.Runtime.InteropServices;

namespace SilverlightViewport.Common.Interop
{
    [ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), 
    Guid("00000117-0000-0000-C000-000000000046")]
    public interface IOleInPlaceActiveObject : IOleWindow
    {
        [PreserveSig]
        new int GetWindow(out IntPtr phwnd);
        [PreserveSig]
        new int ContextSensitiveHelp([In] int fEnterMode);
        [PreserveSig]
        int TranslateAccelerator([In, MarshalAs(UnmanagedType.LPArray)] MSG[] lpmsg);
        [PreserveSig]
        int OnFrameWindowActivate([In] int fActivate);
        [PreserveSig]
        int OnDocWindowActivate([In] int fActivate);
        [PreserveSig]
        int ResizeBorder([In, MarshalAs(UnmanagedType.LPArray)] RECT[] prcBorder, [In] ref Guid riid, [In, MarshalAs(UnmanagedType.Interface)] IOleInPlaceUIWindow pUIWindow, [In] int fFrameWindow);
        [PreserveSig]
        int EnableModeless([In] int fEnable);
    }
}
